package org.xteam.camllight;

public class Atom {
	
	private static Atom[] atoms = new Atom[256];
	
	static {
		for (int i = 0; i < atoms.length; ++i) {
			atoms[i] = new Atom(i);
		}
	}
	
	public static Atom get(int i) {
		return atoms[i];
	}

	private int tag;

	private Atom(int tag) {
		this.tag = tag;
	}
	
	public int tag() {
		return tag;
	}
	
	@Override
	public String toString() {
		return "Atom(" + tag + ")";
	}

}
